<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::ml::ParamGrid Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d8/df1/namespacecv_1_1ml.html">ml</a></li><li class="navelem"><a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html">ParamGrid</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="#pub-attribs">Public Attributes</a> |
<a href="../../d4/d38/classcv_1_1ml_1_1ParamGrid-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::ml::ParamGrid Class Reference<div class="ingroups"><a class="el" href="../../dd/ded/group__ml.html">Machine Learning</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>The structure represents the logarithmic grid range of statmodel parameters.  
 <a href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#details">More...</a></p>
<p><code>#include &lt;opencv2/ml.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a41f16ee1570e78af0d7362231138cc6c"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#a41f16ee1570e78af0d7362231138cc6c">ParamGrid</a> ()</td></tr>
<tr class="memdesc:a41f16ee1570e78af0d7362231138cc6c"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor.  <a href="#a41f16ee1570e78af0d7362231138cc6c">More...</a><br/></td></tr>
<tr class="separator:a41f16ee1570e78af0d7362231138cc6c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4b8034d10d8dd7f083967176dc71d09b"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#a4b8034d10d8dd7f083967176dc71d09b">ParamGrid</a> (double _minVal, double _maxVal, double _logStep)</td></tr>
<tr class="memdesc:a4b8034d10d8dd7f083967176dc71d09b"><td class="mdescLeft"> </td><td class="mdescRight">Constructor with parameters.  <a href="#a4b8034d10d8dd7f083967176dc71d09b">More...</a><br/></td></tr>
<tr class="separator:a4b8034d10d8dd7f083967176dc71d09b"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a0f7cb2424b2a1f5c45670b20c83acc96"><td align="right" class="memItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html">ParamGrid</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#a0f7cb2424b2a1f5c45670b20c83acc96">create</a> (double <a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#a7ce2f9514d5e05b99c325627dbbcba09">minVal</a>=0., double <a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#a46c726cefa11ac616833ee3b67192acb">maxVal</a>=0., double logstep=1.)</td></tr>
<tr class="memdesc:a0f7cb2424b2a1f5c45670b20c83acc96"><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html" title="The structure represents the logarithmic grid range of statmodel parameters. ">ParamGrid</a> Ptr that can be given to the SVM::trainAuto method.  <a href="#a0f7cb2424b2a1f5c45670b20c83acc96">More...</a><br/></td></tr>
<tr class="separator:a0f7cb2424b2a1f5c45670b20c83acc96"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a577e7820786e30214651d8a9702fd940"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#a577e7820786e30214651d8a9702fd940">logStep</a></td></tr>
<tr class="memdesc:a577e7820786e30214651d8a9702fd940"><td class="mdescLeft"> </td><td class="mdescRight">Logarithmic step for iterating the statmodel parameter.  <a href="#a577e7820786e30214651d8a9702fd940">More...</a><br/></td></tr>
<tr class="separator:a577e7820786e30214651d8a9702fd940"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a46c726cefa11ac616833ee3b67192acb"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#a46c726cefa11ac616833ee3b67192acb">maxVal</a></td></tr>
<tr class="memdesc:a46c726cefa11ac616833ee3b67192acb"><td class="mdescLeft"> </td><td class="mdescRight">Maximum value of the statmodel parameter. Default value is 0.  <a href="#a46c726cefa11ac616833ee3b67192acb">More...</a><br/></td></tr>
<tr class="separator:a46c726cefa11ac616833ee3b67192acb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7ce2f9514d5e05b99c325627dbbcba09"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#a7ce2f9514d5e05b99c325627dbbcba09">minVal</a></td></tr>
<tr class="memdesc:a7ce2f9514d5e05b99c325627dbbcba09"><td class="mdescLeft"> </td><td class="mdescRight">Minimum value of the statmodel parameter. Default value is 0.  <a href="#a7ce2f9514d5e05b99c325627dbbcba09">More...</a><br/></td></tr>
<tr class="separator:a7ce2f9514d5e05b99c325627dbbcba09"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The structure represents the logarithmic grid range of statmodel parameters. </p>
<p>It is used for optimizing statmodel accuracy by varying model parameters, the accuracy estimate being computed by cross-validation. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a41f16ee1570e78af0d7362231138cc6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41f16ee1570e78af0d7362231138cc6c">◆ </a></span>ParamGrid() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ml::ParamGrid::ParamGrid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default constructor. </p>
</div>
</div>
<a id="a4b8034d10d8dd7f083967176dc71d09b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b8034d10d8dd7f083967176dc71d09b">◆ </a></span>ParamGrid() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ml::ParamGrid::ParamGrid </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>_minVal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>_maxVal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>_logStep</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor with parameters. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a0f7cb2424b2a1f5c45670b20c83acc96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f7cb2424b2a1f5c45670b20c83acc96">◆ </a></span>create()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html">ParamGrid</a>&gt; cv::ml::ParamGrid::create </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>minVal</em> = <code>0.</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>maxVal</em> = <code>0.</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>logstep</em> = <code>1.</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.ml.ParamGrid_create(</td><td class="paramname">[, minVal[, maxVal[, logstep]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Creates a <a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html" title="The structure represents the logarithmic grid range of statmodel parameters. ">ParamGrid</a> Ptr that can be given to the SVM::trainAuto method. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">minVal</td><td>minimum value of the parameter grid </td></tr>
    <tr><td class="paramname">maxVal</td><td>maximum value of the parameter grid </td></tr>
    <tr><td class="paramname">logstep</td><td>Logarithmic step for iterating the statmodel parameter </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a577e7820786e30214651d8a9702fd940"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a577e7820786e30214651d8a9702fd940">◆ </a></span>logStep</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::ml::ParamGrid::logStep</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Logarithmic step for iterating the statmodel parameter. </p>
<p>The grid determines the following iteration sequence of the statmodel parameter values: </p><p class="formulaDsp">
\[(minVal, minVal*step, minVal*{step}^2, \dots, minVal*{logStep}^n),\]
</p>
<p> where \(n\) is the maximal index satisfying </p><p class="formulaDsp">
\[\texttt{minVal} * \texttt{logStep} ^n &lt; \texttt{maxVal}\]
</p>
<p> The grid is logarithmic, so logStep must always be greater than 1. Default value is 1. </p>
</div>
</div>
<a id="a46c726cefa11ac616833ee3b67192acb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46c726cefa11ac616833ee3b67192acb">◆ </a></span>maxVal</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::ml::ParamGrid::maxVal</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Maximum value of the statmodel parameter. Default value is 0. </p>
</div>
</div>
<a id="a7ce2f9514d5e05b99c325627dbbcba09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ce2f9514d5e05b99c325627dbbcba09">◆ </a></span>minVal</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::ml::ParamGrid::minVal</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Minimum value of the statmodel parameter. Default value is 0. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/<a class="el" href="../../d3/d29/ml_8hpp.html">ml.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:48 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
